package cn.afterturn.easypdf.pdf.entity.base;

import cn.afterturn.easypdf.pdf.handler.IPdfFontHandler;
import cn.afterturn.easypdf.pdf.handler.impl.PdfFontHandlerDefaultImpl;
import cn.afterturn.easypdf.pdf.styler.IPdfExportStyler;
import cn.afterturn.easypoi.excel.entity.ExcelBaseParams;
import lombok.Data;
import org.apache.pdfbox.pdmodel.common.PDRectangle;

/**
 * @author JueYue
 * @version 5.0
 * @DATE: 2024/8/31
 */
@Data
public class PdfBaseParams extends ExcelBaseParams {

    /**
     * 内容基本字体大小
     */
    private int contentFontSize = 12;
    /**
     * 内容基本字体大小
     */
    private int fontInterval = 4;
    private int fontVerticalInterval = 4;

    /**
     * 页面大小
     */
    private PDRectangle pageSize = PDRectangle.A4;

    private float startX = 20F;

    /**
     * pdf样式
     */
    private IPdfExportStyler styler;

    /**
     * 字体
     */
    private IPdfFontHandler fontHandler = new PdfFontHandlerDefaultImpl();
}
